package com.quanyan.order.entity;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public OrderProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdIsNull() {
            addCriterion("source_sys_id is null");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdIsNotNull() {
            addCriterion("source_sys_id is not null");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdEqualTo(String value) {
            addCriterion("source_sys_id =", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdNotEqualTo(String value) {
            addCriterion("source_sys_id <>", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdGreaterThan(String value) {
            addCriterion("source_sys_id >", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdGreaterThanOrEqualTo(String value) {
            addCriterion("source_sys_id >=", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdLessThan(String value) {
            addCriterion("source_sys_id <", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdLessThanOrEqualTo(String value) {
            addCriterion("source_sys_id <=", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdLike(String value) {
            addCriterion("source_sys_id like", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdNotLike(String value) {
            addCriterion("source_sys_id not like", value, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdIn(List<String> values) {
            addCriterion("source_sys_id in", values, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdNotIn(List<String> values) {
            addCriterion("source_sys_id not in", values, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdBetween(String value1, String value2) {
            addCriterion("source_sys_id between", value1, value2, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceSysIdNotBetween(String value1, String value2) {
            addCriterion("source_sys_id not between", value1, value2, "sourceSysId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdIsNull() {
            addCriterion("source_business_id is null");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdIsNotNull() {
            addCriterion("source_business_id is not null");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdEqualTo(String value) {
            addCriterion("source_business_id =", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdNotEqualTo(String value) {
            addCriterion("source_business_id <>", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdGreaterThan(String value) {
            addCriterion("source_business_id >", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdGreaterThanOrEqualTo(String value) {
            addCriterion("source_business_id >=", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdLessThan(String value) {
            addCriterion("source_business_id <", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdLessThanOrEqualTo(String value) {
            addCriterion("source_business_id <=", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdLike(String value) {
            addCriterion("source_business_id like", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdNotLike(String value) {
            addCriterion("source_business_id not like", value, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdIn(List<String> values) {
            addCriterion("source_business_id in", values, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdNotIn(List<String> values) {
            addCriterion("source_business_id not in", values, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdBetween(String value1, String value2) {
            addCriterion("source_business_id between", value1, value2, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessIdNotBetween(String value1, String value2) {
            addCriterion("source_business_id not between", value1, value2, "sourceBusinessId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(String value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(String value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(String value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(String value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(String value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLike(String value) {
            addCriterion("product_id like", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotLike(String value) {
            addCriterion("product_id not like", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<String> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<String> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(String value1, String value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(String value1, String value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductDesIsNull() {
            addCriterion("product_des is null");
            return (Criteria) this;
        }

        public Criteria andProductDesIsNotNull() {
            addCriterion("product_des is not null");
            return (Criteria) this;
        }

        public Criteria andProductDesEqualTo(String value) {
            addCriterion("product_des =", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesNotEqualTo(String value) {
            addCriterion("product_des <>", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesGreaterThan(String value) {
            addCriterion("product_des >", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesGreaterThanOrEqualTo(String value) {
            addCriterion("product_des >=", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesLessThan(String value) {
            addCriterion("product_des <", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesLessThanOrEqualTo(String value) {
            addCriterion("product_des <=", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesLike(String value) {
            addCriterion("product_des like", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesNotLike(String value) {
            addCriterion("product_des not like", value, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesIn(List<String> values) {
            addCriterion("product_des in", values, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesNotIn(List<String> values) {
            addCriterion("product_des not in", values, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesBetween(String value1, String value2) {
            addCriterion("product_des between", value1, value2, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductDesNotBetween(String value1, String value2) {
            addCriterion("product_des not between", value1, value2, "productDes");
            return (Criteria) this;
        }

        public Criteria andProductUrlIsNull() {
            addCriterion("product_url is null");
            return (Criteria) this;
        }

        public Criteria andProductUrlIsNotNull() {
            addCriterion("product_url is not null");
            return (Criteria) this;
        }

        public Criteria andProductUrlEqualTo(String value) {
            addCriterion("product_url =", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlNotEqualTo(String value) {
            addCriterion("product_url <>", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlGreaterThan(String value) {
            addCriterion("product_url >", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlGreaterThanOrEqualTo(String value) {
            addCriterion("product_url >=", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlLessThan(String value) {
            addCriterion("product_url <", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlLessThanOrEqualTo(String value) {
            addCriterion("product_url <=", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlLike(String value) {
            addCriterion("product_url like", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlNotLike(String value) {
            addCriterion("product_url not like", value, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlIn(List<String> values) {
            addCriterion("product_url in", values, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlNotIn(List<String> values) {
            addCriterion("product_url not in", values, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlBetween(String value1, String value2) {
            addCriterion("product_url between", value1, value2, "productUrl");
            return (Criteria) this;
        }

        public Criteria andProductUrlNotBetween(String value1, String value2) {
            addCriterion("product_url not between", value1, value2, "productUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlIsNull() {
            addCriterion("show_url is null");
            return (Criteria) this;
        }

        public Criteria andShowUrlIsNotNull() {
            addCriterion("show_url is not null");
            return (Criteria) this;
        }

        public Criteria andShowUrlEqualTo(String value) {
            addCriterion("show_url =", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlNotEqualTo(String value) {
            addCriterion("show_url <>", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlGreaterThan(String value) {
            addCriterion("show_url >", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlGreaterThanOrEqualTo(String value) {
            addCriterion("show_url >=", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlLessThan(String value) {
            addCriterion("show_url <", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlLessThanOrEqualTo(String value) {
            addCriterion("show_url <=", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlLike(String value) {
            addCriterion("show_url like", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlNotLike(String value) {
            addCriterion("show_url not like", value, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlIn(List<String> values) {
            addCriterion("show_url in", values, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlNotIn(List<String> values) {
            addCriterion("show_url not in", values, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlBetween(String value1, String value2) {
            addCriterion("show_url between", value1, value2, "showUrl");
            return (Criteria) this;
        }

        public Criteria andShowUrlNotBetween(String value1, String value2) {
            addCriterion("show_url not between", value1, value2, "showUrl");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andQuantityIsNull() {
            addCriterion("quantity is null");
            return (Criteria) this;
        }

        public Criteria andQuantityIsNotNull() {
            addCriterion("quantity is not null");
            return (Criteria) this;
        }

        public Criteria andQuantityEqualTo(Integer value) {
            addCriterion("quantity =", value, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityNotEqualTo(Integer value) {
            addCriterion("quantity <>", value, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityGreaterThan(Integer value) {
            addCriterion("quantity >", value, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("quantity >=", value, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityLessThan(Integer value) {
            addCriterion("quantity <", value, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("quantity <=", value, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityIn(List<Integer> values) {
            addCriterion("quantity in", values, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityNotIn(List<Integer> values) {
            addCriterion("quantity not in", values, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityBetween(Integer value1, Integer value2) {
            addCriterion("quantity between", value1, value2, "quantity");
            return (Criteria) this;
        }

        public Criteria andQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("quantity not between", value1, value2, "quantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityIsNull() {
            addCriterion("refund_quantity is null");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityIsNotNull() {
            addCriterion("refund_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityEqualTo(Integer value) {
            addCriterion("refund_quantity =", value, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityNotEqualTo(Integer value) {
            addCriterion("refund_quantity <>", value, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityGreaterThan(Integer value) {
            addCriterion("refund_quantity >", value, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("refund_quantity >=", value, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityLessThan(Integer value) {
            addCriterion("refund_quantity <", value, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("refund_quantity <=", value, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityIn(List<Integer> values) {
            addCriterion("refund_quantity in", values, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityNotIn(List<Integer> values) {
            addCriterion("refund_quantity not in", values, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityBetween(Integer value1, Integer value2) {
            addCriterion("refund_quantity between", value1, value2, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRefundQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("refund_quantity not between", value1, value2, "refundQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityIsNull() {
            addCriterion("remain_quantity is null");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityIsNotNull() {
            addCriterion("remain_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityEqualTo(Integer value) {
            addCriterion("remain_quantity =", value, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityNotEqualTo(Integer value) {
            addCriterion("remain_quantity <>", value, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityGreaterThan(Integer value) {
            addCriterion("remain_quantity >", value, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("remain_quantity >=", value, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityLessThan(Integer value) {
            addCriterion("remain_quantity <", value, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("remain_quantity <=", value, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityIn(List<Integer> values) {
            addCriterion("remain_quantity in", values, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityNotIn(List<Integer> values) {
            addCriterion("remain_quantity not in", values, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityBetween(Integer value1, Integer value2) {
            addCriterion("remain_quantity between", value1, value2, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andRemainQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("remain_quantity not between", value1, value2, "remainQuantity");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}